<!--
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-08-15 20:33:46
 * @LastEditors: cxguo
 * @LastEditTime: 2020-06-12 18:14:31
 -->
<template>
  <cate-tree
    ref="cateTree"
    :list-data-fun="listCateFun"
    :save-fun="saveCatFun"
    :del-fun="delCatFun"
    :is-show-oper="isShowOper"
    title="商品分类 : "
    v-on="$listeners"
  />
</template>
<script>
import { saveData, delData } from '@/api/goods/cate.js'
import { oftenuse } from '@/libs/mixins'
import { listData as listCateData } from '@/api/goods/cate'
import CateTree from '@/views/components/Category'

export default {
  name: 'GoodsCateTree',
  components: { CateTree },
  mixins: [oftenuse],
  props: {
    /**
     * 是否显示增删按钮
     */
    isShowOper: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      listCateFun: listCateData,
      saveCatFun: saveData,
      delCatFun: delData
    }
  },
  computed: {
  },
  created() {
  },
  methods: {
  }
}

</script>
<style lang="scss" scoped>
</style>
